package com.wander.designCreational.singleton.hungrymansingleton;

/**
 * @Author : WDYin
 * @Date : 2020/5/30
 * @Description :
 */
public class SingletonStatic {

    private static final SingletonStatic singletonStatic;

    /**
     * 和第一种没有什么区别，这种看起来高大上面试装逼使用
     */
    static {
        singletonStatic = new SingletonStatic();
    }

    private SingletonStatic() {
    }

    public static SingletonStatic getSingletonStatic() {
        return singletonStatic;
    }
}
